package com.neoz.test.cxf;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

import com.neoz.test.justtest.CmdUtil;

public class HelloWorldClient {

	public static void main(String[] args) {
		JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
		factory.setAddress("http://localhost:10086/helloworld");
		factory.setServiceClass(HelloWorld.class);
		HelloWorld helloWorld = (HelloWorld) factory.create();
		CmdUtil.print(helloWorld.sayHi("cxf"));
	}

}
